<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>

</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商城后台首页</title>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/global.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="layui/layui.js"></script>
    <script src="js/home.js"></script>
</head>

<body class="layui-layout-body" style="font-family: 楷体_GB2312">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header" style="background-color: #302625">
        <div class="layui-logo"><img src="image/main/logo.png" alt="" id="logo">购物管理</div>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <span id="user"></span>
                </a>
                <dl class="layui-nav-child">
                    <dd id="m11" class="subMenu"><a href="javascript:;" data-url="updatepwd.html">修改密码</a></dd>
                    <dd class="subMenu"><a href="login.html" id="exit">退出登录</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="login.html">退出</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="guanli" href="javascript:;"><img src="image/main/gongnengguanli.png">功能管理</a>
                    <dl class="layui-nav-child">
                        <dd id="m2" class="subMenu"><a href="javascript:;" data-url="admin.html"><img src="image/main/gongnengguanli.png">管理员账号管理</a></dd>
                        <dd id="m3" class="subMenu"><a href="javascript:;" data-url="employee.html"><img src="image/main/guanliyuan.png">员工账号管理</a></dd>
                        <dd id="m4" class="subMenu"><a href="javascript:;" data-url="role.html"><img src="image/main/duzheguanli.png">角色权限管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item ">
                    <a class="guanli" href="javascript:;"><img src="image/main/quanbushangping.png">商品管理</a>
                    <dl class="layui-nav-child">
                        <dd id="m5" class="subMenu"><a href="javascript:;" data-url="son.html"><img src="image/main/shangping.png">商品子类别管理</a></dd>
                        <dd id="m6" class="subMenu"><a href="javascript:;" data-url="assemble.html"><img src="image/main/shangping1.png">商品总类别管理</a></dd>
                        <dd id="m7" class="subMenu"><a href="javascript:;" data-url="brand.html"><img src="image/main/pinpai.png">品牌类别管理</a></dd>
                        <dd id="m8" class="subMenu"><a href="javascript:;" data-url="commodity.html"><img src="image/main/shangping2.png">商品信息管理</a></dd>
                        <dd id="m15" class="subMenu"><a href="javascript:;" data-url="picture.html"><img src="image/main/shangpinxiangqin.png">商品详细信息管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item ">
                    <a class="guanli" href="javascript:;"><img src="image/main/quanbuyonhu.png">用户管理</a>
                    <dl class="layui-nav-child">
                        <dd id="m9" class="subMenu"><a href="javascript:;" data-url="user.html"><img src="image/main/guanliyuan.png">用户信息管理</a></dd>
                        <dd id="m10" class="subMenu"><a href="javascript:;" data-url="userinfo.html"><img src="image/main/guanliyuan.png">用户账号信息管理</a></dd>
                        <dd id="m12" class="subMenu"><a href="javascript:;" data-url="dispatche.html"><img src="image/main/paisodizhi.png">用户派送地址管理</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item ">
                    <a class="guanli" href="javascript:;"><img src="image/main/quanbudingdan.png">订单管理</a>
                    <dl class="layui-nav-child">
                        <dd id="m13" class="subMenu"><a href="javascript:;" data-url="order.html"><img src="image/main/dingdan.png">订单信息管理</a></dd>
                        <dd id="m14" class="subMenu"><a href="javascript:;" data-url="detailsr.html"><img src="image/main/diangdanmingxi.png">订单明细管理</a></dd>
                    </dl>
                </li>

            </ul>
        </div>
    </div>

    <div class="layui-tab layui-tab-brief" lay-filter="demo" lay-allowclose="true">
        <ul class="layui-tab-title site-demo-title">
            <li id="homeTab" class="layui-this" lay-id="1">首页</li>
        </ul>

        <div class="layui-body layui-tab-content site-demo site-demo-body" style="overflow: hidden;background-color: #dddddd">
            <div class="layui-tab-item layui-show" style="overflow-y:auto;">
                <iframe src="welcome.html" class="layadmin-iframe" frameborder="no" border="0" allowtransparency="yes"></iframe>
            </div>
        </div>
    </div>

    <!-- 提示文字 -->
    <div id="tooltip" style="display: none;"></div>
    <script>
        layui.use(function(){
            let $ = layui.jquery ;

            // 1.从 sessionStorage 中获取登录用户信息
            let adminStr = sessionStorage.getItem("roleName")

            // // 2.DOM操作
            $("#user").text(adminStr)
        }) ;





    </script>

</div>
</body>
</html>